package com.wss.controller;

import com.wss.service.ListSongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@Controller
@RestController
public class ListSongController {

    @Autowired
    private ListSongService listSongService;

    @GetMapping("/lsitSong/detail")
    public Object listSongOfSongId(HttpServletRequest req){
        String songListId = req.getParameter("songListId");
        return listSongService.listSongOfSongId(Integer.parseInt(songListId));
    }

}
